/**
 * 
 */
package com.sofast.engine.parsepage.create;

import java.util.ArrayList;
import java.util.List;

import com.sofast.bean.SongerBean;

/**
 * @author alex
 *
 */
public class ParseQueue {

	public List<SongerBean> songerList = new ArrayList<SongerBean>();
	
	public ParseQueue() {
		
	}

	public synchronized void push(SongerBean songer) {
		songerList.add(songer);
	}
	
	public synchronized SongerBean get() {
		if(songerList.size() > 0) {
			SongerBean songer = songerList.get(0);
			songerList.remove(0);
			
			return songer;
		}
		
		return null;
	}
}
